(function() {
    var html = document.getElementsByTagName('html');

    if (html && html[0]) {
        var style = html[0].style;

        function resize() {
            style.fontSize = (window.innerWidth / 320 * 100) + 'px';
        }

        resize();
        window.onresize = resize;
    }
})();